﻿using UnityEngine;
using System.Collections;
using System.Text;

public class inputManager : MonoBehaviour {
    public GameObject inputBox;
    public GameObject inputBox1;
    UIInput uiInput;
    UIInput uiInput1;
    static string text;
    static string text1;

    public void getMessage()
    {
        uiInput = inputBox.GetComponent<UIInput>();
        text = uiInput.label.text;
        print(text);
    }

    public void getMessage1()
    {
        uiInput1 = inputBox1.GetComponent<UIInput>();
        text1 = uiInput1.label.text;
        print(text1);
    }


    
    public void moveScene()
    {
        string sb = "ID : " + text + "PASS : " + text1; // String Builder Create
        Application.LoadLevel("login1");        
        eduProgramClient.Instance.msgHandle(sb);
    }
    /*public void moveScene()
    {
        StringBuilder sb = new StringBuilder(); // String Builder Create
        sb.Append("ID : aaa" + text);
        sb.Append("Pass : bbb" + text1);
        SimpleTcpClient.Instance.sendToServer(sb);
    }*/
}
